package com.liudadan.controller;

import com.liudadan.pojo.Student;
import com.liudadan.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.sql.SQLException;
import java.util.List;

@Controller
public class StudentController {
    @Autowired
    private StudentService  studentService;

    public void httpStudentAll() throws SQLException {
        List<Student> allStudents  = studentService.findAllStudents();
        System.out.println("allStudents = " + allStudents.toString() );
    }
}
